import 'package:fish_redux/fish_redux.dart';

import 'action.dart';
import 'state.dart';

Reducer<NewsDetailState> buildReducer() {
  return asReducer(
    <Object, Reducer<NewsDetailState>>{
      NewsDetailAction.action: _onAction,
    },
  );
}

NewsDetailState _onAction(NewsDetailState state, Action action) {
  final NewsDetailState newState = state.clone();
  return newState;
}
